import axios from "axios";



export function request(config) {
    const instance = axios.create({
            baseURL: 'http://127.0.0.1:8888/api/private/v1/',
            timeout: 5000
        })
        // 请求拦截
    instance.interceptors.request.use(config => {
            return config
        }, err => {})
        // 接收拦截
    instance.interceptors.response.use(res => {
        return config
    }, err => {
        console.log(err);
    })

    return instance(config)
}